Date : 10/27/16

README File for replication of all figures and table reported in "Important Matters in Political Context" by Byungkyu Lee and Peter Bearman, Sociological Science 4:1-30, 2017.

This file contains Stata Do files and R codes to reproduce all figures and tables appeared in the paper "Important Matters in Political Context" as well as its online supplementary material published in Sociological Science. The original data set are not included here -- which are publicly available --  but can be downloaded at:

1) GSS - Smith, Tom W., Peter Marsden, Michael Hout, and Jibum Kim. General Social Surveys, 1972–2014 : http://www3.norc.org/GSS+Website/ (last accessed on 15 September 2015).
-- GSS7212_R4.dta contains the 1985, 1987, and 2004 GSS data
-- GSS_panel06w123_R3.dta contains the 2010 GSS data

2) ANES - American National Election Studies. Available from: http://www.electionstudies.org/index.html (last accessed on 14 March 2014).
-- ANES2000TS.dta contains the 2000 "post-election" ANES data
-- ANES2004TS.dta and ANES2006pilot.dta contain the 2006 "pilot-study" ANES data


I include one stata data file (imp_combine.dta) that were generated by running important matters_data setup.do, which later will be used to replicate all tables and figures. I also include one csv file that I downloaded from Google Trends to produce Figure 1. If you set up the working directory containing the data file in your computer in the following stata do file and R code, then you can reproduce all figures and tables by running the corresponding Stata do-file and R code. 

Main -----------------------------------------
Table 1 -- important matters_analysis.do
Table 2 -- important matters_analysis.do

Figure 1 -- important matters_google trends.R
Figure 2 -- important matters_analysis.do  + important matters_analysis.R
Figure 3 -- important matters_analysis.R
Figure 4 -- important matters_analysis.R
Figure 5 -- important matters_analysis.R

Online Supplementary Materials ---------------
Table B2 -- important matters_analysis.do
Table B3 -- important matters_analysis.R
Figure B1 -- important matters_analysis.R
Figure B2 -- important matters_analysis.R
Figure B3 -- important matters_analysis.R

Program Version Information : 
-- Stata 14 SE version for all analysis 
-- R 3.3.1 for all analysis
-- A list of R-packages used across all analysis (downloaded from the standard R CRAN server on 6 July 2016): foreign,lme4,bcp,survey,sandwich.

If you have any question on these files or fail to reproduce any of figures or tables, then please direct your correspondence to Byungkyu Lee (bklee009@gmail.com). 

